<template>
  <el-container>
    <el-header>
      <VHeader />
    </el-header>
    <el-main>
      <router-view></router-view>
    </el-main>
    <!-- <el-footer>Footer</el-footer> -->
  </el-container>
</template>

<script>
// 结构文件
import VHeader from "../components/VHeader.vue";
export default {
  name: "Main",
  components: {
    VHeader,
  },
};
</script>

<style lang="less">
.el-header,
.el-footer {
  background-color: #4e72b8;
  color: rgb(255, 255, 255);
  text-align: center;
  line-height: 60px;
  a {
    color: white;
    text-decoration-line: none;
  }
  a:hover {
    color: aquamarine;
  }
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  // line-height: 160px;
  height: 90vh;
  > div {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
}

#app > .el-container {
  width: 1000px;
  margin: 0 auto 40px auto;
  // margin-bottom: 40px;
}
</style>